//
//  UIBarButtonItem+Extension.h
//  WeiBo
//
//  Created by youmy on 15/8/18.
//  Copyright (c) 2015年 youmy. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIBarButtonItem (Extension)
/**
 *  创建一个图片Item
 *
 *  @param target     执行方法的对象
 *  @param action     点击item后调用的方法
 *  @param image      图片
 *  @param hightImage 高亮图片
 *
 *  @return 创建后的item
 */
+ (instancetype)itemWithTarget:(id)target action:(SEL)action image:(NSString *)image hightImage:(NSString *)hightImage;

/**
 创建一个文字Item

 @param target 执行方法的对象
 @param action 点击item后调用的方法
 @param title 标题
 @param color 标题颜色
 @return 创建后的item
 */
+ (instancetype)itemWithTarget:(id)target action:(SEL)action title:(NSString *)title titleColor:(UIColor *)color;
/**
 *  创建一个空Item
 *
 *  @return 创建后的item
 */
+ (instancetype)item;

+(UIBarButtonItem *)itemWithTarget:(id)target Action:(SEL)action nomalImage:(UIImage *)image ImageSelected:(UIImage *)imageSelected WithScale:(CGFloat)scale;


+(UIBarButtonItem *)itemWithTarget:(id)target Action:(SEL)action Title:(NSString *)title Font:(UIFont *)font;


+(UIBarButtonItem *)itemWithTarget:(id)target Action:(SEL)action Title:(NSString *)title Font:(UIFont *)font Color:(UIColor *)color;
@end
